package com.chengyu.core.domain.enums;

import lombok.Getter;

/**
 * @title  商品枚举
 * @author wenlj
 * @date   2023/10/05
 */
public class CommonEnums {

	/**
	 * 店铺入驻状态枚举
	 */
	@Getter
	public enum Status{
		/**0待审核>>1上架>>2仓库>>3删除>>4驳回**/
		DEL(-1),
		DELETE(-1),
		ENABLE(1),
		DISABLED(0);



		private final int value;

		Status(int value){
			this.value = value;
		}
	}

	@Getter
	public enum StockType{
		/**库存计算方式>>1下单减库存>>2付款减库存**/
		ORDER_REDUCE(1),
		PAY_REDUCE(2);

		private final int value;

		StockType(int value){
			this.value = value;
		}
	}

	@Getter
	public enum Type{
		DEL(-1),
		DELETE(-1),
		ENABLE(1),
		DISABLED(0);

		private final int value;

		Type(int value){
			this.value = value;
		}
	}
}
